#ifndef CUSTOMHEADERVIEW_H
#define CUSTOMHEADERVIEW_H

#include <QHeaderView>
#include <QPainter>

class CustomHeaderView : public QHeaderView
{
    Q_OBJECT

public:
    explicit CustomHeaderView(Qt::Orientation orientation, QWidget *parent = nullptr);

protected:
    void paintSection(QPainter *painter, const QRect &rect, int logicalIndex) const override;
    QSize sectionSizeFromContents(int logicalIndex) const override;

private:
    void drawCabinetHeader(QPainter *painter, int cabinetNumber, int logicalIndex, int logicalIndex2) const;
};

#endif // CUSTOMHEADERVIEW_H
